package behavioralPattern.visitor.example01.product;

import behavioralPattern.visitor.example01.Acceptable;
import behavioralPattern.visitor.example01.product.Product;
import behavioralPattern.visitor.example01.visitor.Visitor;

import java.time.LocalDate;

public class Wine extends Product implements Acceptable{

    public Wine(String name, LocalDate date, double price) {
        super(name, date, price);
    }

    @Override
    public void accept(Visitor visitor) {
        visitor.visit(this);
    }
}
